package com.atguigu.common.rabit.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName MQConfig
 * @Description: 类描述
 * @Author: admin
 * @CreateDate: 2024/7/29 14:56
 * @UpdateUser: 更新人
 * @UpdateDate: 2024/7/29 14:56
 * @UpdateRemark: 更新的信息
 * @Version: 1.0
 */


@Configuration
public class MQConfig {
    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}

